﻿using System;
using System.Windows;
using System.Windows.Controls;

using System.Windows.Controls.Primitives;

namespace Base64CSharp
{
    class MainWindow : Window
    {
        private string version = "0.0.1";
        private TextBox textBox;
        public MainWindow()
        {
            Title = "Base64 CSharp";
            
            DockPanel panel = new DockPanel();
            Content = panel;
            
            MainMenu menu = new MainMenu(this);
            panel.Children.Add(menu);
            DockPanel.SetDock(menu, Dock.Top);
            
            textBox = new TextBox();
            textBox.TextWrapping = TextWrapping.Wrap;
            textBox.AcceptsReturn = true;
            textBox.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
            panel.Children.Add(textBox);
        }
        public string GetTextContent()
        {
            return textBox.Text;
        }
        public void SetTextContent(string source)
        {
            textBox.Text = source;
        }
        public string GetVersion()
        {
            return version;
        }
    }
}
